package com.zhengxin.one.entity;

import lombok.*;
import org.json.JSONObject;

import java.time.LocalDate;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BillAccumulation {
    private int id;
    private String region;
    private String id_card;
    private int status;
    private int pay_status;
    private int handle_type;
    private String plan;
    private String person_ratio;
    private String company_ratio;
    private Date jointime;
    private String info;
    private Date pstime;
    private Date petime;
    private String cbase;
    private String bnbase;
    //续缴月份
    private String keepTime;
    //续费合计
    private String total;
    private LocalDate keep_end_time;
    //set全部
    public void setAll(JSONObject bean){
        this.region= (String) bean.get("region");
        this.plan= (String) bean.get("plan");
        this.info= (String) bean.get("info");
        this.cbase= (String) bean.get("cbase");
        this.company_ratio= (String) bean.get("company_ratio");
        this.person_ratio= (String) bean.get("person_ratio");
    }
}
